added alternate code to compile non-test version in comments