infer scope