autocalibrate added to demo 1