output summary line at the end