#199 colorchart. optimize script