removing getchar