added cases in case reset fails and rolls over