what's ```valid_input_set()```?