new file and fix map code

new file and fix map code