eliminate trailing lines