updating allreduce