added lock

removed lock