changed color alg