iterate over shared data example