change property from primitive to object