update cap script