fixed sample collector routines