script1 (need to test)