updatede script and output