removed template compare closure