minor matlab changes