change array of array to hash