added "subtotal" as a var