narrowed the scope of writelock