v.2.4 color recognizer, refactoring