added rename function.