shorter version + remove unspecified output (double newline, case number...

...)