modified update script