concurrency handling added for departments