fixed output coloring condition