profile update function has been done