change the delete dependency between models