colour change for diet least squares applet