revised (half done) rule induction, minor clean up