remove unnecessary lines of code