making sure map is deleted