changed octave script