updated colors of nodes