fixing bug in ndFromXyz
dump