fixed multiple main() definitions.