refs #6 formatting code