changed case of rules types to match