attempt to clear up memory leak