apply new function coloring nodes to searchnode