added scoping from pp4