change color logic