quiz controler and checkpoint controler optimize