fixed to match libseq example