make record and genedict from reference