fixed failed and deleting