significant speed up: no need to compute psi