using Andrew's u sampling and correcting sampleKu