begin refactor
extract normalize color method
remove unneded conditionals
deprecate some ineffective code
remove old obsolete tests