removed synchronized code blocks