upgrade all the code