update rename file function