update some code for user