per-model computation