small fixes to delete and update