add to_i to d.average