changed error for overloaded main function to warning