two file.write-s: for BG and ENG