stage 1 final debug