works consistently when only one thread gathering data.