matching event to schema