old code; new applet