made result_calc the same as before to have same interface