deleting extra lines