now has a function that updates  profile