add coloring events, print diagram