update the code