break when ? is encountered