removed a few unnecessary lines after inserting new node