added debugger usage in stage 3