quick and dirty renaming logic