edit hsv method