using two series of threads