add subtotal condition (check me!)