update some function for user