added recalculate method to get totals sorted ones and for all