Rasheed Wallace scored seven of his season-high 31 points in the overtime period to help Detroit end a three-game losing streak with a 105-99 victory over the Celtics.

``We really needed this one after the game in Boston,'' he said. ``We couldn't let them get us twice.''

Rip Hamilton played a career-high 49 minutes, while scoring 22 points.

Boston fell to 5 1/2 games behind the Pistons for the second seed in the Eastern Conference playoffs.

``It's too late in the season to be losing like this,'' Celtics guard Gary Payton said. ``We can go from third seed to sixth or seventh in a hurry.''