updated compute total