refactor to txt_