added changeColor() function