reset moved after the OR