addded thread function summary