updated Convertor

code refactoring