tandem refactoring