update the code for second time