updated version of Sequence