refactored colorizer a bit