work on event selection