remove unavailable regions and cleanup