add synchronized block