commit before changing from allgather to gather