new functions

add new function to detect colors