added for loop to sendrecv haven't filled out calls, though.