fix typo of function main