tiny refactor in examples