create thread array with train info