remove copy file function