debug rename function