allow capture with array.