removed handshaking