formatting result by infos