change maxColor to 7