refactoring getConverter() method