convert line item to new format