some legwork for generating confident rules