added uniqueness test, making mean reversion a bit faster