big example refactor