use map[key] will lost a lot of time