cleaning up map file