changed reset sequencing