change scope for methods and refactoring