refactore converter