refactoring on network