rules for handshakes - Search