removed unnecessary functions with sendRecv