add hash function with unordered_map
fix FOR -> auto
record