check in thread safe version