On a theorem of Heilbronn