started refactoring the converter