How to mend a broken heart