refactoring
test script