removed the reentrant lock