why put this here instead of in main() itself?