fixed piping.script to more accurately test program