An improved algorithm for improving the accuracy of simultaneous sampling