color detection added