added  when_prior