deleted a few unnecessary lines of code