changed the synchronization methods