debugging stage 3