change thread_safe version