added 2nd thread