diff --git a/JSAT/src/jsat/DataSet.java b/JSAT/src/jsat/DataSet.java
index <HASH>..<HASH> 100755
--- a/JSAT/src/jsat/DataSet.java
+++ b/JSAT/src/jsat/DataSet.java
@@ -400,31 +400,7 @@ public abstract class DataSet<Type extends DataSet>
      */

     public Iterator<DataPoint> getDataPointIterator()

     {

-        Iterator<DataPoint> iteData = new Iterator<DataPoint>() 

-        {

-            int cur = 0;

-            int to = size();

-

-            @Override

-            public boolean hasNext()

-            {

-                return cur < to;

-            }

-

-            @Override

-            public DataPoint next()

-            {

-                return getDataPoint(cur++);

-            }

-

-            @Override

-            public void remove()

-            {

-                throw new UnsupportedOperationException("This operation is not supported for DataSet");

-            }

-        };

-        

-        return iteData;

+        return datapoints.getRowIter();

     }

     

     /**
use underling datastor iterator for better performance in col major cases