tidy up cross-references