updating code to include new fields to records