revised p5 output table (1 activity per row)