minor rearrangement of lines