adds a rule to decide segments to be executed