pair convert to record and back