added user input check against multi-value case