removing spurious lines