debug stage 1