reimplemented weka learning