add color detection