trapping exits