remove thread safety warning