change order of code lines