organize lines