fixed bug with sample count