make thr_mining an array of pointers