fixed octave script