udpated udpate script