polish the crossref function.