replaced applet code in SampleDist