refactoring (demo_scene)