try to reduce memory leak. Wait for testing.