some matlab adjustments