modified to save and load cutoff_