changing format of hash to better support key-val pairs