deleting unnecessary lines of code