- added some synchronized blocks