add option for color automatic selection