modified to set_node functions

modified to use default values of grid_idx in set_node