script for update