wrote some test code