reorganize to ml, small improve in OneRule