corrected application of rule matrix