sendDiff doubly defined