A second generation nonlinear factor analysis