this scoping incorrect on outFunc