now profile is obj.profile for any kind of obj and not only function