flip_rule added