added xcheck to improve robustness to noise