finalise table-comparison code