changed runprogram.c and menu.c