remove spurious lines