removed references to 'func_code' in vectorized function