renamed some CORE variables for clarity sake. also create some specific variables for records types