clean extern space