delete unwanted lines