match input case on output