adding concurrency check