fix bug Pipeline step 3 function