used wrong method
remove debug code
update test case