adding color detection