remove two unnecessary lines of code