Change method defineColor to putColor