more appropriate useScope for named elements, it's correct now
unused variable: check global vars