should be adding to the file not overwriting