set default for total value in template