minor changes in matlab script