cited public code for use in our testcase