optimize concurrency case