removed synchronzied that made deadlocks