work on function array