modify the transfer file code