added 'sample' for sampling events