added scoping
scoping