corrected pipeline