clean up main.c
fix typo