adding concurrency control