added try for weird cases where missing cutoff in optimization