using const_iterators instead of iterators in event handler