updated memm in training settings