minor example refactor