modify register flow