added profile & update profile function