edited script structure