fixed ySamples usage