changed color method code