remove extra lines