632-add some error checking to update