used then statements in case