array at index i is names[i]