refactored conversion methods and fixed utils