change how to generate color code