added pattern colouring