replaced SNAP hash with unordered_map
speed ups