returing pointer to node. this allows to check if the node was actually found.