moved the updating section