remove getchar()

removed getchar(), the implementation was wrong anyway