adds format_result to the mix
sets up result format outup