remove line items from lists/counts where appropriate