refactor scope.obj for readability