add totals back pub safety