wrote update script