adding code for handshake to cells