defined reNaming() function