check refactoring