prevent a potential memory leak