removed unnecessary locking