missing lock added.