get prior samples; doesn't run
works now