menu_functions.c: cleanup