removed redundant code from def
redundant scope creation eliminated: perf. boost by 45%
code reduction