adjust command of handshaking