updating the sender and receiver