cleaned map code a bit. Can't get default hide to work