missed a necessary lock