multiproc loop improved