handling arrays in input