fixing piping commands in