pulls unexpected end of input explanation out into method
removes multiple boolean values from data structure access questions to avoid ambiguity