Need help with update function for float property


def update_prop(self,context):

    bpy.ops.object.modifier_add(type='SMOOTH')


    
class CUSTOM_objectCollection(PropertyGroup):
    
    value: FloatProperty( min = 0.0, max = 1.0, default=0.0, update = update_prop)

I am trying to update the float property in property group but no luck.