remove potential memory leak