PITTSBURGH (AP) — Daniel Vogelbach hit a go-ahead homer in the seventh and the Pittsburgh Pirates took a series from the Los Angeles Dodgers for the first time in nearly five years with a 5-3 victory.

Vogelbach lined a shot to the seats in right field off Daniel Hudson, putting the Pirates back in front after they squandered a three-run lead in the top of the seventh.

Edwin Rios hit a three-run double for Los Angeles.