deletes extra lines