removed unnecessary synchronization block