works in debugger