this would be much faster if ``_sequence`` is an ``array``