update the method makeColor(), paintColor()