add smearing check code