code for basic cue point sample