delete duplicate, extra lines