writing up partial match rules