correcting check for question mark