edit changeColor() function