modified run.c