update and delete now works