internal error in duration_arr