some event checking