add coloring for %g