returning instance of node for root