use index for colour classwq rather than id