adding nodes iteration