update the code to the latest version