working sampling demo, hack!