creating and deleting nodes