tidy up reference data