reorganised cache and par sampling,, made multi core