added conditional statements for different kinds of rules (still empty)