adding _write lock