changed internal representation of hash