remove all excess lines