Credit score

What do I do to remove bad credit history from closed accounts.  Had mortgage change hand 3 times and with each I had late payments.  The final holder of account foreclosed and is now closed but late payment history still shows. What can I do to have these removed to help my score.