Removing extra lines