Make userprofile.profile a function