sendToServer method has been created