calc_indice returns only output file