adding spinup to detect_fit_level2.m