set up color change code