added v4 of colour coding