upgraded weka to 3.7 to ashvin's code works