refactor check_scope_level