corrected missing 'int' for main function