update the code to the latest changes