add some code about map