Better way found to determine the integrity of metals