modified gnuplot script