use helpers to calculate total