finished method to rename a file