update fig script