compute variance emits objective value as well