updated userprofile functions