mean-field implemented, runtime nan bug...