adding threading for teo colors