replace FuncArray with array