adjusting for applet