added functions and macro to iterate over all node in the phase, having some data...