to make both dictionary and records