made hash map into persistent str to pos map