using case for input - weird syntax