change the order of the code