scrope problem after refactoring