udpated script