working shift and row incrementation