changed locations of sends, now all sends are together and all receives are together