added extra 2 file writer