removing append to end of file when storing results