use the synchonize method in lock too