Update some codes