improved colour coding