change to run in matlab