array to hash resolution