remove unused Closure
remove byRef counter var