forgot echo when writing to file