use stl map to oprate command