change string storage to hash storage