improving the performance of loesche