improve memory leak app