ref formatting