improved some function coloring