refactoring scene