reference implementation formatting