added an exit rule