fixed the update functionality