static modifier for local global vars
removed local getch & ungetch declarations