modified check for main method and removed overloading of member names