add boolean variable isHandshake for Handshake - operations