working in serial
threads are executing correctly