passing an array