cleaning main.c