update some codes