inline contamination detection