echoHand function