clean up usage of sample