small changes to improve GNU Octave functionality