both old and new sampler are working but new sampler seems to be giving incorrect results