Why did you change to `push_back`s here? Not only is it unnecessary, but it's also wrong, because now `chain` has 8 elements.