stage 2 debugging