working with scope