first try with scoping