sampling seems to be working
fixed sampling to return right data structure