color dectect need to fix