corrected pop_sample to log space