added check for Main and main() method