static refactoring