make colorArray global