fix input order in case