corrected concurrency errors