Advances to what allowed the allies to sink more German Uboats?

The invention of radar helped the Allies to locate and sink the German U Boats.