added the rules for instances