file transer function changed