Formatting and renaming variables