add synchronized keyword to Data