changed the color routine a little