fixes compatibility with octave