applied result array structure to tpl layout