changed addcustomproperties method