multiple arguments passed into array functions