add more thteads synchronization