shift/reset example working