new xref function