finding the bug