Cleaning unnecessary lines