remove diagnostic file from sampling function