missed conditional check for sending event