use correct scope for samples