remove unwanted lines