fixed pipeline functions