refactor converters