replaced synchronized stament with methode