started conversion from array to hash