Resonances in heavy ion reactions