put meanfield into class for easier access