working compare-events table