minor changes to eventBarrier