rename a file to store result