created primitive handshake