simplify Sequence class