initialize data to pass to thread1 and thread 2