tracing the bug