Just to second that, you should just have to add raw.first_samp to your variable onset
raw.first_samp
onset