adjusted sendEvent