wrangling with the array part