update some code