checks for event