fixed function names in meanfield