better formatting for refs