How obedience training work (and sometimes doesn’t)