removing unnecessary lines