collection handling for examples