added stage 7, corrected pin