fixed passing broken arrays into the colour func