refactoring integrity