adding map code