passing array as parameters