only look up scope level once

avoid hash lookups and remove depency on the instance