added functionality to getNode