working HSV conversion