beautified script.