finalise update script