refactoring colouring into the addon