format output on index