removing extra lines