remove excess lines