refactored the scope constructor