finally removed locking.