fixed-update-working-dev

-made the update function recursive