change the order of lines