adding change color method
fixed syntax error