removing unwanted lines of code