modified run.m