deleted lock initialization in write