modified getNode