completed conversion to hsv