progress but broken: data manip ok, x = NaN