forgot getc in main while