main scope repair