Think about the values ch takes in the course of your program. Hint: you're using it for several things at once.