moving RSD order code outside search method, to enable common random numbers analysis