remove unwanted lines to shorten the file size