update total (WIP)