hsv search implemented with runtime bugs!