template for concurrency