move from fit to maxsample
move from fit to maxsample