re fixed code: much larger number of samples