adding color thresholding