finished the cutoff implementation