removes extra lines