changed output file name to meanfilter.txt