debugging stage 2