add lineItems logic