event_check method half-way working