tunning timing and switching 2 registers clear order