refactoring scope resolution