refactoring => make scope variable invisible