refactoring Stage