run.c modified