fixed issue with global static function not reducing correctly