updaed script