changed to using hsv color space