improvements to sequence