redid some code for profile data