add code to check memory leak // open text file