updated exit criteria to be the same