added tester, cleaned up code in back forth