fixed a couple errors in piping