add getNode method