some code for tester