added breakpoint logic