updated the udpate script