switching account.total() to using aggregate().