renamed seq to sequence to avoid collision