better use of scope