convert results table format