Code reordenation