fixed -Wmain warning