addition of main tester function