rename records and keys