edited handshake() to handShake()