unnecessary trace of scope is removed