Refactory getNode