adding checks for map regeneration