two functions

can't trigger sendToServer function