added concurrency and java queue