NEW YORK -- Evan Gattis hit two home runs, Collin McHugh excelled once again and the Houston Astros exceeded last season's win total, beating the New York Yankees 6-2 Wednesday.

The AL West leaders improved to 71-57, a year after going 70-92. With 34 games left on the schedule, the Astros already have achieved their best season since 2010.

The Yankees have lost five of seven, a slide that's cost them first place in the AL East.

McHugh (14-7) kept up a recent run of ace pitching, both for himself and the team with the top ERA in the league. Houston has won seven of nine, not permitting more than two runs in any game.

McHugh shut out the Yankees until Didi Gregorius hit a two-run homer in the seventh. He outpitched Michael Pineda (9-8) for the second time this year, and has allowed just seven runs in his last five starts.