added fields to results and built tpl structure