working with color detection