turned array to hash