add get node by index func