change line delimiter to \n