fix piping issue