tweaking color detection