add return value to conver function