sampling debug