fix up reference formatting