moved converter to it's own object, use fold not case stmt