updated colorgrid to use double array