new script and some comments added