why not slice these off in one swoop at the end? wouldn't need to use the ``stop_idx -= 2`` stuff either