prototyped the main method