support arrays as parameters of functions