reorganize. scope.cpp