bugfixing script1 and adding script 2