scoping works