refactoring stage  structuring