remove old core