added updateColor