read total from global object