patmat and renaming