modified update.sh