finish the update implementation
start the implemntation of delete