With yesterday's news that Demetrious Johnson vs. Chris Cariaso has been bumped to the main event of UFC 178, the promotion has shuffled the lineup for UFC 177.

According to UFC.com, Danny Castillo vs. Tony Ferguson will serve as the new UFC 177 "co-main event" on Aug. 31 in Sacramento, Calif. As a result, Ruslan Magomedov vs. Richard Odoms has been moved to the pay-per-view main card.

Sacramento's Castillo (17-6) has won three of his last four fights, while Ferguson (15-3) has won his last two fights in a row.

Here's the updated UFC 177 lineup:



Pay-per-view main card:

Renan Barao VS T.J. Dillashaw (c) -- for the UFC bantamweight title

Danny Castillo VS Tony Ferguson

Shayna Baszler VS Bethe Correia

Richard Odoms VS Ruslan Magomedov

Carlos Diego Ferreira VS Ramsey Nijem



Fox Sports 1 prelims:

Derek Brunson VS Lorenz Larkin

Henry Cejudo VS Scott Jorgensen

Justin Edwards VS Yancy Medeiros

Anthony Hamilton VS Ruan Potts



UFC Fight Pass prelim:

Anthony Birchak VS Joe Soto