call function with array arguments