added a rename function