fixed update and delete