added notion of total work