scale population and sample correctly