mv final file rather than cp