added getchar function