refresh statistics in thread