updated hash to map string int to value