tool failure diagnosis