deleted unnecessary main function