pre-refactoring checking