while iterating something, make use of the upper layer's information to deal with current node