failure diagnosis